export default class Message {
    id: string;
    textMessage: string;
    whoSentId: string;
    senderName: string;
    createdBy: string;
    createdDate: Date;
    senderImageId: string | null = null;

    constructor(id: string,
                textMessage: string,
                whoSentId: string,
                senderName: string,
                createdBy: string,
                createdDate: Date,
                senderImageId: string | null = null) {
        this.id = id;
        this.textMessage = textMessage;
        this.senderName = senderName;
        this.senderImageId = senderImageId;
        this.whoSentId = whoSentId;
        this.createdDate = createdDate;
        this.createdBy = createdBy;
    }
}